package com.softline.documentsmall.ret;


/**
 * 业务执行结果错误枚举类，根据业务需要可以持续添加
 */
public enum BusinessErrorEnum {

    FAIL(1001,"Operation failed"),

    SUCCESS(0000,"Success"),



    //网易易盾相关
    ID_NOT_FOUND(1002,"未找到id记录"),
    STATE_NOT_ALLOW_UPDATE(1003,"状态不允许更新"),
    ID_IS_NULL(1004,"未传递id"),
    PARAMS_HAS_NULL(1005,"传递的参数有空值");


    private Integer code;

    private String msg;

    BusinessErrorEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
